# $OpenBSD: Makefile,v 1.16 2015/06/03 06:37:26 jasper Exp $

COMMENT =	Python module to handle audio metadata

MODPY_EGG_VERSION = 1.29
DISTNAME =	mutagen-${MODPY_EGG_VERSION}
PKGNAME =	py-${DISTNAME}
CATEGORIES =	audio

HOMEPAGE =	https://mutagen.readthedocs.org/

MASTER_SITES =	https://bitbucket.org/lazka/mutagen/downloads/

# GPLv2 only
PERMIT_PACKAGE_CDROM =	Yes

MODULES =		lang/python
# has py3 support, not handled in port yet

MODPY_ADJ_FILES =	docs/id3_frames_gen.py \
			tools/mid3cp \
			tools/mid3iconv \
			tools/mid3v2 \
			tools/moggsplit \
			tools/mutagen-inspect \
			tools/mutagen-pony

TEST_DEPENDS =		audio/faad \
			audio/flac \
			audio/py-eyed3 \
			audio/py-vorbis \
			audio/vorbis-tools \
			multimedia/oggz

MAKE_ENV =		LC_CTYPE="en_US.UTF-8"

do-test:
	${MODPY_TEST_TARGET}

.include <bsd.port.mk>
